package org.zjx.resolution;

import lombok.Data;
import org.zjx.entity.Rect;
import org.zjx.resource.FontAttribute;

import java.awt.*;
import java.util.List;


/**
 * 窗口上文本元素 bean
 */
@Data
public class ResolutionAttributes {
    private Rect rect; //属性所在窗口的相对区域
    private  List<Color> colors; //属性字体颜色
    private  int height;//字体高度
    private  String fontType; //字体类型

    public ResolutionAttributes() {
    }

    public ResolutionAttributes(Rect rect, List<Color> colors) {
        this.rect = rect;
        this.colors = colors;
        this.height = 0;
        fontType = FontAttribute.NPC;
    }

    public ResolutionAttributes(Rect rect, List<Color> colors, int height, String fontType) {
        this.rect = rect;
        this.colors = colors;
        this.height = height;
        this.fontType = fontType;
    }

}
